<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";
import request from "@/utils/request.js";
request({
  url: "/test",
  method: "get"
}).then(res => {
  console.log(res);
  // 拿到 {code:0, msg:'执行成功'}
});

export default {
  name: "home",
  components: {
    HelloWorld
  }
};
</script>
